<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/appmanager/a_Course_Child.js此处编写
 -->
<template>
    <div>
        <view-grid :columns="columns"
                   :detail="detail"
                   :editFormFileds="editFormFileds"
                   :editFormOptions="editFormOptions"
                   :searchFormFileds="searchFormFileds"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/appmanager/a_Course_Child.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'Id',
                    footer: "Foots",
                    cnName: '子课程列表',
                    name: 'a_Course_Child',
                    url: "/a_Course_Child/",
                    sortName: "Id"
                },
                extend: extend,
                editFormFileds: {"ChildName":"","ChildTeacher":"","ChildSort":"","ChildType":"","ChildDes":"","videoId":"","IsDelete":"","IsTrialable":"","ChildTimeLength":""},
                editFormOptions: [[{"title":"子课程名称","field":"ChildName","type":"text"},
                               {"title":"子课程老师","field":"ChildTeacher","type":"text"},
                               {"title":"子课程排序","field":"ChildSort","type":"number"},
                               {"dataKey":"ordertype","title":"子课程类型","field":"ChildType","type":"select"},
                               {"title":"子课程描述","field":"ChildDes","type":"text"},
                               {"title":"视频标识","field":"videoId","type":"text"},
                               {"dataKey":"enable","title":"是否删除","field":"IsDelete","type":"switch"},
                               {"dataKey":"enable","title":"是否是听","field":"IsTrialable","type":"switch"},
                               {"title":"子课程长度 ","field":"ChildTimeLength","type":"text"}]],
                searchFormFileds: {"ChildName":"","ChildTeacher":"","IsDelete":"","IsTrialable":""},
                searchFormOptions: [[{"title":"子课程名称","field":"ChildName","type":"text"},{"title":"子课程老师","field":"ChildTeacher","type":"text"},{"dataKey":"enable","title":"是否删除","field":"IsDelete","type":"switch"},{"dataKey":"enable","title":"是否是听","field":"IsTrialable","type":"switch"}]],
                columns: [{field:'Id',title:'子课程编码',type:'int',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ChildName',title:'子课程名称',type:'string',width:120,align:'left',sortable:true},
                       {field:'ParentId',title:'父课程编码',type:'int',width:120,align:'left'},
                       {field:'ChildTeacher',title:'子课程老师',type:'string',width:120,align:'left'},
                       {field:'ChildSort',title:'子课程排序',type:'int',width:120,align:'left'},
                       {field:'ChildType',title:'子课程类型',type:'int',bind:{ key:'ordertype',data:[]},width:120,align:'left'},
                       {field:'ChildDes',title:'子课程描述',type:'string',width:120,align:'left'},
                       {field:'videoId',title:'视频标识',type:'string',width:120,align:'left'},
                       {field:'IsDelete',title:'是否删除',type:'int',bind:{ key:'enable',data:[]},width:120,align:'left'},
                       {field:'IsTrialable',title:'是否是听',type:'int',bind:{ key:'enable',data:[]},width:120,align:'left'},
                       {field:'ChannelId',title:'频道id',type:'string',width:120,align:'left'},
                       {field:'TenantId',title:'多用户编码',type:'int',width:120,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'CreateId',title:'创建者编码',type:'int',width:120,hidden:true,align:'left'},
                       {field:'VideoCode2',title:'视频播放地址',type:'string',width:120,align:'left'},
                       {field:'VideoCode1',title:'视频播放地址',type:'string',width:120,align:'left'},
                       {field:'ChildRelevanceFile',title:'子课程关联文件',type:'string',width:120,align:'left'},
                       {field:'ChildTimeLength',title:'子课程长度 ',type:'string',width:120,align:'left'},
                       {field:'ChildStartTime',title:'子课程开始时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'ChildImgContent',title:'子课程Url',type:'string',width:120,align:'left'},
                       {field:'ChildUrl',title:'子课程Url',type:'string',width:120,align:'left'},
                       {field:'ChildEndTime',title:'子课程结束时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'UpdateTime',title:'修改时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'Modifier',title:'Modifier',type:'string',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
